<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse;font-size: 14px;width: 1200px;margin: auto}
        table,th,td{border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
    <center>
        <span style="color: darkslategray;font-size: 30px">欢迎<span style="color: darkslategray;font-size: 30px">[[${session.username}]]</span>光临</span>
        <span><a th:href="@{/login/loginto}">退出</a></span>
    </center>
    <table class="list">
        <center><a th:href="@{/function/toadd}">添加职位信息</a></center>
        <center><a th:href="@{/company/findAll}">返回员工信息</a></center>

        <tr>
            <th>职位编号</th>
            <th>职位名称</th>
            <th>所属部门</th>
            <th colspan="2">操作</th>
        </tr>
        <tr th:each="function : ${function}">
            <td th:text="${function.zid}"></td>
            <td th:text="${function.zname}"></td>
            <td th:text="${function.bname}"></td>
            <td><a th:href="@{/function/toupdate(zid=${function.zid})}">修改</a></td>
            <td><a th:href="@{/function/del(zid=${function.zid})}">删除</a></td>
        </tr>
    </table>
</body>
</html>